﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace TrainingReminderSystem.Model
{
    /// <summary>
    /// 员工表信息表
    /// </summary>
    public partial class SysEmployee
    {
        /// <summary>
        /// 员工ID
        /// </summary>
        [Key]
        public int SysEmployeeID { get; set; }

        /// <summary>
        /// 操作员ID
        /// </summary>
        public int? SysOperatorID { get; set; }

        /// <summary>
        /// 在职=0,离职=1 登录的时候有判断的
        /// </summary>
        public EnumQuitStatus EnumQuitStatus { get; set; }

        /// <summary>
        /// 头像Url
        /// </summary>
        public string HeaderUrl { get; set; }

        /// <summary>
        /// 员工姓名
        /// </summary>
        public string SysEmployeeName { get; set; }

        /// <summary>
        /// 拼音
        /// </summary>
        public string PY { get; set; }

        /// <summary>
        /// 员工电话
        /// </summary>
        public string SysEmployeePhone { get; set; }

        /// <summary>
        /// 自定义编码
        /// </summary>
        public string UserCode { get; set; }

        /// <summary>
        /// 是否能看到手机号
        /// </summary>
        public bool CanSeePhone { get; set; }

        /// <summary>
        /// 是否是演示帐号,代码写死某些功能不能访问
        /// </summary>
        public bool IsDemo { get; set; }

        /// <summary>
        /// 最后修改 员工ID
        /// </summary>
        public int? UpdateSysEmployeeID { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? UpdateDate { get; set; }

        /// <summary>
        /// 是否删除 正常=0,删除=1
        /// </summary>
        public bool IsDel { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        #region 关系对象

        public SysOperator SysOperator { get; set; }

        public List<SysRolePostEmployeeRelation> SysRolePostEmployeeRelation { get; set; }

        /// <summary>
        /// 员工店铺
        /// </summary>
        public List<SysEmployeeStoreRelation> SysEmployeeStoreRelation { get; set; }

        #endregion
    }
}
